package wh.coach._string;

/**
 * @author hangwen
 * @date 2023/6/23
 */
public class _Immutable {
    public static void main(String[] args) {
        String str = "Hello world,你好 ";

        //大写
        String upperCase = str.toUpperCase();
        //小写
        String lowerCase = str.toLowerCase();

        System.out.println(upperCase);
        System.out.println(lowerCase);

        //去掉前后空格
        final String trim = str.trim();
        System.out.println(trim);

        System.out.println(str);

        //data现有数据：John,input john
        //input.toUpperCase().equals(data.toUpperCase());
        "join".equalsIgnoreCase(str);
    }
}
